<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
          integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css"
          integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"
            integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd"
            crossorigin="anonymous"></script>
    <title>图书馆书架</title>
</head>
<body>
<div class="col-md-4 col-md-offset-5">
    <h1>图书馆书架</h1>
</div>
<div class="col-md-8 col-md-offset-2">
    <table class="table table-hover">
        <tr class="info">
            <th>图书Id</th>
            <th>图书名</th>
            <th>图书作者</th>
        </tr>
        <tr th:each="item:${bookList}">
            <td th:text="${item.bookId}"></td>
            <td th:text="${item.bookName}"></td>
            <td th:text="${item.author}"></td>
        </tr>
    </table>
    <a href="showDelete">
        <button type="button" class="btn btn-warning">删除</button>
    </a>
    <a href="showAdd">
        <button type="button" class="btn btn-info">新增</button>
    </a>
</div>

</body>
</html>